package com.css.fxfzysx.modules.vaolEngineering.service;

import com.css.fxfzysx.base.response.RestResponse;
import com.css.fxfzysx.modules.lifeline.entity.newEntity.SmxUpNetworkEntity;
import com.css.fxfzysx.modules.vaolEngineering.param.update.UpNetwork1Param;
import com.css.fxfzysx.modules.vaolEngineering.param.update.UpNetwork2Param;
import com.css.fxfzysx.modules.vaolEngineering.param.update.UpNetwork3Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface UpNetworkService {
    void countPseVulnerability(String versionId,String tableId);

    RestResponse countContinuousWelding(String versionId,String tableId);

    RestResponse countInterfaceWelding(String versionId,String tableId);

    RestResponse importPipelineDamageRate(MultipartFile file);

    RestResponse importContinuousWelding(MultipartFile file);

    RestResponse importInterfaceWelding(MultipartFile file);

    Map<String, Object> uploadUpNetwork(String fileIds, String versionId,String userId) throws Exception;

    HashMap<Integer, ArrayList<String>> getDataValidation(String versionId,Integer type);

    SmxUpNetworkEntity getByTableId(String id);

    void updateSimpleModelById(UpNetwork1Param network1Param);

    void updateContinuousWeldingById(UpNetwork2Param network2Param);

    void updateInterfaceTypeById(UpNetwork3Param network3Param);

    UpNetwork1Param countSimpleModel(UpNetwork1Param param);

    RestResponse continuousCount(UpNetwork2Param param);

    RestResponse interfaceCount(UpNetwork3Param param);
}
